package com.cqjtu.store.product.mapper;

import com.cqjtu.store.product.pojo.entity.ProductCategory;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCategoryMapper {
    List<ProductCategory> getList();

    ProductCategory getById(Integer id);

    int insert(ProductCategory productCategory);

    int delete(Integer id);
    List<ProductCategory> getListByIsParent(Integer isParent);

    List<ProductCategory> getListByParentId(Integer parentId);

    int update(ProductCategory productCategory);

}
